package com.css.dzj.zfjg.modules.supervisioncompinfo.service.impl;

import com.css.dzj.zfjg.modules.supervisioncompinfo.entity.JgTsjbAccessoryEntity;
import com.css.dzj.zfjg.modules.supervisioncompinfo.mapper.JgTsjbAccessoryMapper;
import com.css.dzj.zfjg.modules.supervisioncompinfo.service.JgTsjbAccessoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
public class JgTsjbAccessoryServiceImpl implements JgTsjbAccessoryService {
     @Autowired
    JgTsjbAccessoryMapper jgTsjbAccessoryMapper;
    /**
     * 添加附件信息
     * @param jgTsjbAccessoryEntity
     */
    @Transactional
    @Override
    public void addfj(JgTsjbAccessoryEntity jgTsjbAccessoryEntity) {
        try {
            jgTsjbAccessoryMapper.save(jgTsjbAccessoryEntity);
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
}
